<?php
class Api_Lib_Comment{

    function __construct() {
        $this->_modelUser = FLEA::getSingleton('Model_Acm_User');
    	$this->_modelFunc = FLEA::getSingleton('Model_Acm_Func');
    }

    public function GetMenu($params,& $service){
        $f = &FLEA::getAppInf('menu');
        include $f;
        $arr = array();
        $num = 0;
        foreach ($_sysMenu['menu'] as $key => &$value) {
        	foreach ($value as $kk => &$vv) {
                $arr[$num][$key][] = array(
                    'text' => $kk,
                    'icon' => 'el-icon-paperclip',
                    'menu_id'=> $key.'-'.$kk
                );
        	} 
            $num++;
        }
        $data = array(
            'success'   => true,
            'msg'       => '请求成功',
            'params'    => json_encode($arr),
            'errorcode' => '0',
        );
        return $data;
    }
}
?>

